/* eslint-disable */
import React from 'react';
import styles from  "./index.less";
import PublicTemplate from '../../../services/PublicTemplate';

// 驾驶舱模态框内的文字模版
const CockpitTemplate = ({ left, right, length = 10 }) => {
    return (
        <div className={styles["cockpit-template-wrapper"]}>
            <div className={styles["left"]}>{left}</div>
            <div className={styles["right"]}>{PublicTemplate.stringToEllipsis(right, length)}</div>
        </div>
    )
}

export default CockpitTemplate